/**
 * @description 服务端的打包配置，因为 node 不支持 esm 
 * @author xfj
 */

const path = require('path');
const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base.config');

const clientConfig = {
  target: 'web',  // 运行在 node 环境中
  entry: './src/client/index.js',
  output: {
    filename: 'index.js',
    path: path.join(__dirname, 'public')
  }
}

module.exports = merge(baseConfig, clientConfig);
